<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>案例管理-华美旅游规划后台管理系统</title>
		<link rel="shortcut icon" href="images/favicon.ico" />
		<link rel="stylesheet" href="css/admin/caseM.css" />
	</head>
	<body>
		<%@include file="../common/header.jsp"%>
		<%@include file="../common/mainLeft.jsp"%>
		<div class="pageIndex">
				<header class="headerInder">
				<span style="padding-left: 20px;">位置：首页  > 案例管理</span>
			</header>
			<div>
				<table class="table">
					<thead class="tableHeader">
						<th style="width: 80px;">数量</th>
						<th style="width: 90px;">案例类型</th>
						<th style="width: 180px;">案例描述</th>
						<th style="width:320px;">案例标题</th>
						<th style="width: 140px;">发布时间</th>
						<th style="width: 80px;">操作</th>
					</thead>
					<tbody>
						<c:forEach items="${caseList }" var="cases">
							<tr class="trBox">
								<td class="tr"><fmt:formatNumber value="${cases.rownum }"/></td>
								
								<td style="width: 90px;overflow: hidden;">
								<c:if test="${cases.classify==1 }">总体规划</c:if>
								<c:if test="${cases.classify==2 }">行业五年规划</c:if>
								<c:if test="${cases.classify==3 }">全域旅游规划</c:if>
								<c:if test="${cases.classify==4 }">发展规划</c:if>
								<c:if test="${cases.classify==5 }">概念性规划</c:if>
								<c:if test="${cases.classify==6 }">旅游策划</c:if>
								<c:if test="${cases.classify==7 }">提升规划</c:if>
								<c:if test="${cases.classify==8 }">专项规划</c:if>
								<c:if test="${cases.classify==9 }">景观设计</c:if>
								<c:if test="${cases.classify==10 }">建筑设计</c:if>
								<c:if test="${cases.classify==11 }">可研报告</c:if>
								<c:if test="${cases.classify==12 }">项目建议书</c:if>									
								</td>
								<td style="width: 180px;overflow: hidden;">${cases.describe }</td>
								<td style="width: 140px;overflow: hidden;">${cases.title }</td>
								<td class="tr">${cases.create_time }</td>
								<td class="tr"><span class="deleteSpan" style="cursor: pointer;color: blue;" id="${cases.id }">删除</span></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<div style="text-align:center;padding-top:20px;">
			<%@include file="../common/page.jsp" %>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var deleteSpans = $('.deleteSpan');
		$.each(deleteSpans,function(index) {
			$(this).click(function() {
				var con = confirm('你确定要删除吗')
				if(con) {
					window.location.href='deleteCase.htm?id='+$(this).attr('id');
				}
			})
		})
	</script>
	<script type="text/javascript" src="js/jquery.pagination.js"></script>
</html>
